package cn.xicode.cloud.frame.dubbo.consumer.user;

import cn.xicode.cloud.frame.dubbo.common.provider.user.UserProvider;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

/**
 * @author LGC
 */
@Slf4j
@Service
public class UserService {


    @DubboReference(group = "provider-group", version = "1.0", protocol = "tri")
    private UserProvider userProvider;

    public String getUsername() {
        return userProvider.getUsername();
    }
}
